@echo off<nul 3>nul
tasklist | find /i "yt_fd2.exe" >nul 2>nul && goto exit || goto start
:exit
echo "yt_fd2.exe started"
ping -n 2 127.0.0.1>nul
exit

:loop
tasklist | find /i "yt_fd2.exe" >nul 2>nul && goto wait || goto start

:start
echo "yt_fd2.exe start"
yt_fd2.exe
ping -n 5 127.0.0.1>nul
goto loop

:wait

ping -n 5 127.0.0.1>nul

goto loop
